From: Jonas Ã…dahl Date: Wed, 18 Sep 2019 12:57:48 +0000 (+0200) Subject: introspect: Check whitelist also for GetRunningWindows() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~811^2^2~49 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e0947b01bd636dfbb59f87f0008eb8cdbc26e845;p=gnome-shell.git introspect: Check whitelist also for GetRunningWindows() Otherwise the xdg-desktop-portal-gtk screen cast widget won't work. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/732 --- diff --git a/js/misc/introspect.js b/js/misc/introspect.js index c7fb3a712..f256555cb 100644 --- a/js/misc/introspect.js +++ b/js/misc/introspect.js @@ -127,7 +127,8 @@ var IntrospectService = class { let apps = this._appSystem.get_running(); let windowsList = {}; - if (!this._isIntrospectEnabled()) { + if (!this._isIntrospectEnabled() && + !this._isSenderWhitelisted(invocation.get_sender())) { invocation.return_error_literal(Gio.DBusError, Gio.DBusError.ACCESS_DENIED, 'App introspection not allowed');